home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / samba / patches / samba-1.019 / samba-1
Encoding:
Text File  |  1996-01-16  |  3.3 KB  |  98 lines

  1. diff -u -r --new-file last-version/source/change-log samba-1.9.15p8/source/change-log
  2. --- last-version/source/change-log    Mon Jan 15 19:45:39 1996
  3. +++ samba-1.9.15p8/source/change-log    Tue Jan 16 20:30:53 1996
  4. @@ -1751,6 +1751,11 @@
  5.      - chgpasswd changes from Roman Dumych <roman@nyxis.unibase.com>
  6.      for SVR4
  7.      - GUEST_SESSSETUP change from David.Chappell@mail.cc.trincoll.edu
  8. +    - released p7
  9. +    - moved SO_REUSEADDR before bind()
  10. +    - added more flexible GUEST_SESSSETUP to local.h and restored
  11. +    pre-p7 behaviour as default
  12. +    - released p8
  13.      
  14.  ==========
  15.  todo:
  16. diff -u -r --new-file last-version/source/local.h samba-1.9.15p8/source/local.h
  17. --- last-version/source/local.h    Sun Dec  3 21:42:38 1995
  18. +++ samba-1.9.15p8/source/local.h    Tue Jan 16 20:26:37 1996
  19. @@ -97,7 +97,23 @@
  20.  
  21.  /* do you want session setups at user level security with a invalid
  22.     password to be rejected or allowed in as guest? WinNT rejects them
  23. -   but it can be a pain as it means "net view" needs to use a password */
  24. +   but it can be a pain as it means "net view" needs to use a password 
  25. +
  26. +   You have 3 choices:
  27. +
  28. +   GUEST_SESSSETUP = 0 means session setups with an invalid password
  29. +   are rejected.
  30. +
  31. +   GUEST_SESSSETUP = 1 means session setups with an invalid password
  32. +   are rejected, unless the username does not exist, in which case it
  33. +   is treated as a guest login
  34. +
  35. +   GUEST_SESSSETUP = 2 means session setups with an invalid password
  36. +   are treated as a guest login
  37. +
  38. +   Note that GUEST_SESSSETUP only has an effect in user or server
  39. +   level security.
  40. +   */
  41.  #ifndef GUEST_SESSSETUP
  42.  #define GUEST_SESSSETUP 0
  43.  #endif
  44. diff -u -r --new-file last-version/source/reply.c samba-1.9.15p8/source/reply.c
  45. --- last-version/source/reply.c    Mon Jan 15 19:32:57 1996
  46. +++ samba-1.9.15p8/source/reply.c    Tue Jan 16 20:28:29 1996
  47. @@ -374,10 +374,15 @@
  48.      } 
  49.        if (!valid_nt_password && !guest && !password_ok(user,smb_apasswd,smb_apasslen,NULL,False))
  50.      {
  51. -#if !GUEST_SESSSETUP
  52. -      if (lp_security() >= SEC_USER && Get_Pwnam(user,True))
  53. +      if (lp_security() >= SEC_USER) {
  54. +#if (GUEST_SESSSETUP == 0)
  55.          return(ERROR(ERRSRV,ERRbadpw));
  56.  #endif
  57. +#if (GUEST_SESSSETUP == 1)
  58. +        if (Get_Pwnam(user,True))
  59. +          return(ERROR(ERRSRV,ERRbadpw));
  60. +#endif
  61. +      }
  62.         if (*smb_apasswd || !Get_Pwnam(user,True))
  63.          strcpy(user,lp_guestaccount(-1));
  64.        DEBUG(3,("Registered username %s for guest access\n",user));
  65. diff -u -r --new-file last-version/source/util.c samba-1.9.15p8/source/util.c
  66. --- last-version/source/util.c    Mon Jan 15 19:44:25 1996
  67. +++ samba-1.9.15p8/source/util.c    Tue Jan 16 10:14:44 1996
  68. @@ -3694,6 +3694,11 @@
  69.    if (res == -1) 
  70.      { DEBUG(0,("socket failed\n")); return -1; }
  71.  
  72. +  {
  73. +    int one=1;
  74. +    setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one));
  75. +  }
  76. +
  77.    /* now we've got a socket - we need to bind it */
  78.    if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) < 0) 
  79.      { 
  80. @@ -3713,11 +3718,6 @@
  81.        return(-1); 
  82.      }
  83.    DEBUG(3,("bind succeeded on port %d\n",port));
  84. -
  85. -  {
  86. -    int one=1;
  87. -    setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one));
  88. -  }
  89.  
  90.    return res;
  91.  }
  92. diff -u -r --new-file last-version/source/version.h samba-1.9.15p8/source/version.h
  93. --- last-version/source/version.h    Mon Jan 15 21:30:44 1996
  94. +++ samba-1.9.15p8/source/version.h    Tue Jan 16 20:37:41 1996
  95. @@ -1 +1 @@
  96. -#define VERSION "1.9.15p7"
  97. +#define VERSION "1.9.15p8"
  98.